import styled from "styled-components";
import logo from "../../statics/nav-logo.png"
export const HeaderWrapper = styled.div` 
    position:relative;
    height:55px;
    border-bottom:1px solid #f0f0f0;
`
export const Logo = styled.div `
    position:absolute;
    top:0;
    left:0;
    display:block;
    width:100px;
    height:56px;
    background:url(${logo});
    background-size:contain;
`
export const Nav = styled.div`
    width:960px;
    height:100%;
    padding-right:70px;
    box-sizing:border-box;
    margin:0 auto;
   
    i {
        &.iconfont{
            font-size: 20px;
        }
    }
`
export const NavItem = styled.div`
    line-height:25px;
    padding:15px;
    font-size:17px;
    &.left{
        float:left;
        margin-right:10px;
    }
    &.right{
        float:right;
        margin-right:10px;
        color:#969696;
    }
    &.active{
        color:#ea6f5a;
    }
    i {
        &.iconfont{
            font-size: 20px;
        }
    }
`
export const SearchWraper = styled.div`
    position:relative;
    float:left;
    .icon-fangdajing{
        position:absolute;
        right:5px;
        bottom:5px;
        width:30px;
        line-height:30px;
        border-radius:15px;
        text-align:center;
        &.focused {
            background: #777;
            color: #fff;
        }
    }

`
export const NavSearch = styled.input.attrs({
    placeholder: "搜索"
})
`
width:160px;
height:38px;
padding:0 30px 0 20px;
margin-top:9px;
margin-left:15px;
boxsizing:border-box;
border:none;
border-radius:19px;
background:#eee;
font-size:14px;
color:#777;
&.focused{
    width:240px;
}
&.slide-enter {
    transition: all 0.2s ease-out;
}
&.slide-enter-active {
    width:240px;
}
&.slide-exit {
    transition: all 0.2s ease-out;
}
&.slide-exit-active {
    width:160px;
}
`;

export const Addition = styled.div `
    position:absolute;
    right:0;
    top:0;
    height:55px;
`
export const Button = styled.div`
    float:right;
    margin-top:9px;
    margin-right:20px;
    padding:0 20px;
    line-height:38px;
    border-radius:19px;
    border:1px solid #ea6f5a;
    font-size:14px;
    &.reg{
        color:#ea6f5a;
    }
    &.write{
        color:#fff;
        background:#ea6f5a;
    }
    i {
        &.iconfont{
            font-size: 20px;
        }
    }
`
// 热门搜索
export const SearchInfo = styled.div`
    position:absolute;
    left:0;
    top:56px;
    width:240px;
    padding:0 20px;
    background:#fff;
    box-shadow:0 0 8px rgba(0,0,0,0.2);
`
export const SearchInfoTitle = styled.div`
    margin-top:20px;
    margin-bottom:15px;
    line-height:20px;
    font-size:14px;
    color:#969696;
`
export const  SearchInfoSwitch = styled.div`
    float:right;
    font-size:13px;
    cursor:pointer;
    .spin {
        color:skyblue;
        display:block;
        float:left;
        font-size:12px;
        margin-right:2px;
        transition:all 0.2s ease-in;
        transform:rotate(0deg);
        transform-origin:center center;
    }
`
export const SearchInfoList = styled.div`
    overflow:hidden;
`
export const SearchInfoItem = styled.div`
    display:block;
    float:left;
    line-height:20px;
    padding:0 5px;
    margin-right:10px;
    margin-bottom:15px;
    font-size:12px;
    border: 1px solid #ddd;
    color:#787878;
    border-radius:3px;
`